﻿<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table border="1">
            <tr>
                <td colspan="3" style="text-align: center">
                    <strong><span style="font-size: 11pt">输入用户信息</span></strong></td>
            </tr>
            <tr>
                <td style="width: 118px; height: 21px">
                    用户名</td>
                <td style="width: 141px; height: 21px">
                    <asp:TextBox ID="txtUsername" runat="server"></asp:TextBox></td>
                <td style="width: 149px; height: 21px">
                    <asp:CustomValidator ID="valxUsername" runat="server" ErrorMessage="CustomValidator"
                        OnServerValidate="valxUsername_ServerValidate"></asp:CustomValidator></td>
            </tr>
            <tr>
                <td style="width: 118px">
                    密码</td>
                <td style="width: 141px">
                    <asp:TextBox ID="txtPassword" runat="server" TextMode="Password"></asp:TextBox></td>
                <td style="width: 149px">
                    <asp:CustomValidator ID="valxPassword" runat="server" ErrorMessage="CustomValidator"
                        OnServerValidate="valxPassword_ServerValidate"></asp:CustomValidator></td>
            </tr>
            <tr>
                <td style="width: 118px">
                    电子邮件</td>
                <td style="width: 141px">
                    <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox></td>
                <td style="width: 149px">
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmail"
                        ErrorMessage="RegularExpressionValidator">"电子邮件格式不正确"</asp:RegularExpressionValidator></td>
            </tr>
            <tr>
                <td colspan="3" style="text-align: center">
                    <asp:Button ID="btnOK" runat="server" OnClick="btnOK_Click" Text="录入" /></td>
            </tr>
        </table>
    
    </div>
        <asp:Label ID="lblMsg" runat="server"></asp:Label>
    </form>
</body>
</html>
